﻿using System.Collections.Generic;

namespace _3DSensor
{
    public class GestureRecogniser
    {
        List<IGesturable> _observers = new List<IGesturable>();

        public List<IGesturable> Observers
        {
            get { return _observers; }
            set { _observers = value; }
        }

        public void RegisterObservers(IGesturable app)
        {
            _observers.Add(app);            
        }

        public void PublishGesture(GestureBase gesture)
        {
            foreach (IGesturable o in _observers)
            {
                o.ReceivedGesture(gesture,1);
            }
        }
    }
}
